module module1
  use module2, only: sub2
  implicit none

contains
  subroutine sub1
    print *, 'This is subroutine1'
    call sub2()
  end subroutine sub1

end module module1